package com.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {
	
	
	@RequestMapping(value = "/sayHello/{username}", method = RequestMethod.GET	)
	public String hello(@PathVariable("username") String username) {
		
		System.out.println("This is ServerProvider2");		
		return "Hello Ribbon, this is Server2, my name is:" + username;
	}
}
